package com.zjtaixue.usersite.service;


import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPObject;
import com.zjtaixue.usersite.domain.Class;
import com.zjtaixue.usersite.dto.ClassInfoDto;
import com.zjtaixue.usersite.page.PageResult;
import com.zjtaixue.usersite.query.ClassQueryObject;

import java.util.List;

public interface ClassService {
    /**
     * 班级的高级查询加分页
     *
     * @param qo
     * @return
     */
    PageResult<JSONObject> listPageResult(ClassQueryObject qo);

    int insert(Class cla);

    int deleteById(Integer id);

    Class getById(Integer id);

    void update(Class cla);

    List<Class> listByMajorId(Integer majorId);

	List<Class> listByEnrollmentYear(Integer enrollmentYear);

    List<Integer> listAllEnrollmentYears();

    List<Class> listAll();

    String listByTeacherId(Integer teacherId);
}
